import { get, post, request } from '@/utils/request'
const BASE_URL = window.baseUrl
// 查询应用列表
export function listApp(query) {
  return get(BASE_URL + '/system/app/list', query)
}

export function detailApp(id) {
  return get(BASE_URL + '/system/app/detail/' + id)
}

export function deleteApp(id) {
  return post(BASE_URL + '/system/app/delete/' + id)
}

export function addApp(data) {
  return post(BASE_URL + '/system/app/add', data)
}

export function updateApp(data) {
  return post(BASE_URL + '/system/app/update', data)
}

export function changeAppStatus(id, status) {
  return post(BASE_URL + '/system/app/update', { id, status })
}
